<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑权限信息</title>
    <link rel="stylesheet" type="text/css" href="/sh/css/addMould.css"/>
    <script type="text/javascript" src="/sh/js/plugin.js"></script>
    <script type="text/javascript" src="/sh/js/comm.js"></script>
    <script type="text/javascript" src="/sh/js/limits/editLimits.js"></script>
</head>
<body>
<div style="margin:10px 0;"></div>
<div class="easyui-panel editLimits-main" title="权限信息"
     style="width:100%;max-width:600px;padding:10px 30px 10px 80px;">
    <form id="editLimitsForm" method="post">
        <input type="hidden" th:value="${limits.id}" name="id"/>
        <div class="tb-div">
            <input class="easyui-textbox" id="limitName" name="limitName" th:value="${limits.limitName}"
                   style="width:80%" data-options="label:'权限名称:',required:true,prompt:'必填'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" th:value="${limits.icon}" id="oldIcon"/>
            <input class="easyui-combobox" id="icon" name="icon"
                   style="width:80%" data-options="label:'权限图标:',required:true,prompt:'必填'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" th:value="${limits.limitType}" id="oldLimitType"/>
            <input class="easyui-combobox" id="limitType" name="limitType"
                   style="width:80%" data-options="label:'权限类型:',required:true,prompt:'必填'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" th:value="${limits.openStyle}" id="oldOpenStyle"/>
            <input class="easyui-combobox" id="openStyle" name="openStyle"
                   style="width:80%" data-options="label:'打开样式:',required:true,prompt:'必填'"/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="addr" th:value="${limits.addr}"
                   style="width:80%" data-options="label:'URL地址:',required:true,prompt:'必填'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" id="oldIsShow" th:value="${limits.isShow}"/>
            <input class="easyui-combobox" name="isShow" id="isShow"
                   style="width:80%" data-options="
                   required:true,
                   prompt:'必填',
                   data: [
						{value:'yes',text:'显示'},
						{value:'no',text:'不显示'}
					],
					editable: false,
					panelHeight: 'auto',
					label: '是否显示:',
					labelPosition: 'left'
                    "/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="limitSort" th:value="${limits.limitSort}"
                   style="width:80%" data-options="label:'排序:'"/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="remark" th:value="${limits.remark}"
                   style="width:80%" data-options="label:'备注:'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" th:value="${limits.parentCode}" id="oldParentCode"/>
            <input class="easyui-combotree" id="parentCode" name="parentCode"
                   style="width:80%" data-options="label:'上级菜单:',
                   panelMaxHeight: 200"/>
        </div>
    </form>
    <div style="text-align:center;padding:5px 0">
        <a href="javascript:void(0)" class="easyui-linkbutton" id="save"
           style="width:80px" iconCls="icon-save">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" id="clear"
           style="width:80px" iconCls="icon-clear">重置</a>
    </div>
</div>
</body>
</html>